$(document).ready(function(){
 
  
  $('#menu ul').append('<li><a id="menulogin" href="login.php">Login</a></li>');
  
  $('#menulogin').click(function(){
    $('#loginForm').modal({overlayClose:true});
    return false;
  });

    /*** Searching form  ***/
  var SearchText;  
  $('#find input').focusin(function(){
    
    SearchText = $(this).val();
    
    $(this).val('');
    $(this).css({'color':'#000'});
    
  });
  
  $('#find input').focusout(function(){
    
    $(this).val(SearchText);
    $(this).css({'color':'#999'});
    
  });
  
    /*** quick panel ***/
  $('#left-container').tabs({collapsible: true,
                             selected: -1                             
  });
  
    /*** preview of photo ***/
 $('.item_album').tooltip({position: 'top, center'}); 

   /*** album info ***/
 $('.item_photo').tooltip({position: 'top, center'});

  
});
